/*
 * Manager.java
 *
 * This class extends the Employee class and uses the override annotation to
 * check if a method has been overridden properly.
 *
 * Copyright 2007 Aptech Software Limited. All Rights Reserved.
 */

package employeeannotation;

/**
 * This class overrides a method from the Employee class and uses the override
 * annotation to check if the method has been overridden properly.
 * @author vincent
 */
public class Manager extends Employee {
  
  /**
   * Creates a new instance of Manager
   * @param name the name of the employee
   * @param date the date of birth of the employee
   * @param salary the current salary drawn by the employee
   * @param designation the designation of the employee
   */
  public Manager(String name, String date, double salary,
      String designation) {
    this.name = name;
    this.dateOfBirth = date;
    this.currentSalary = salary;
    this.designation = designation;
  }
  
  /**
   * This method is invoked to display the details of an employee.
   */
  // Standard annotation to check if a method has been overridden properly
  @Override
  public void showEmployeeDetails(){
    System.out.println("The details of the Manager are as follows:");
    System.out.println("Manager Name:" + name);
    System.out.println("Date of Birth:" + dateOfBirth);
    System.out.println("Current Salary:" + currentSalary);
    System.out.println("Designation:" + designation);
  }
  
}
